package com.lzx.iteam.bean;

import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * **********************************
 * User: zhangshuai
 * Date: 2016年 08月 01日
 * Time: 下午2:41
 *
 * @QQ : 1234567890
 * **********************************
 */
public class CRMDetailBean implements Serializable {

    /**
     * type
     * 0:可编辑    1: 标题栏  2:跟进进度  3: 性别  4:地址
     * 5:线索来源  6: 备注  7:销售阶段(没有赢率)  8: 时间 2016-8-12
     * 9:机会类型  10:联系人选择  11:机会来源  12:时间(有十和分)  2016-8-12 10:00
     * 13:赢率    14:行业   15:客户级别  16:销售阶段(有赢率)
     */
    private int type;
    private String topTitle; // 基本信息  联系信息  其他信息
    private String title;    // 标题
    private String content;  // 内容
    private String image;    // 头像
    private int index;       // 选择index  性别、线索来源等
    private int hintType;    // 1: 必填
    private boolean noEdit;    // false::(默认)可编辑   true:不可编辑


    public CRMDetailBean() {
    }

    /**
     * 负责人
     * @param title
     * @param content
     * @param image
     */
    public CRMDetailBean(String title, String content, String image) {
        this.title = title;
        this.content = content;
        this.image = image;
    }

    /**
     * 标题
     * @param type
     * @param topTitle
     */
    public CRMDetailBean(int type, String topTitle) {
        this.type = type;
        this.topTitle = topTitle;
    }

    /**
     * 特殊类型 TextView  备注
     * @param type
     * @param title
     * @param content
     */
    public CRMDetailBean(int type, String title, String content) {
        this.type = type;
        this.title = title;
        this.content = content;
    }

    /**
     * 特殊类型 TextView  性别  线索来源
     * @param type
     * @param title
     * @param index
     */
    public CRMDetailBean(int type, String title, int index) {
        this.type = type;
        this.title = title;
        this.index = index;
    }

    /**
     * @param type
     * @param title
     * @param content
     * @param hintType
     */
    public CRMDetailBean(int type, int hintType,String title, String content) {
        this.type = type;
        this.hintType = hintType;
        this.title = title;
        this.content = content;
    }

    /**
     * 详情 联系人
     * @param type
     * @param title
     * @param content
     * @param index  联系人人数
     */
    public CRMDetailBean(int type, String title, String content, int index) {
        this.type = type;
        this.title = title;
        this.content = content;
        this.index = index;
    }

    /**
     * 普通类型 EditText
     * @param title
     * @param content
     */
    public CRMDetailBean(String title, String content) {
        this.title = title;
        this.content = content;
    }

    /**
     * 普通类型 EditText
     * @param title
     * @param noEdit   true:不可编辑
     * @param content
     */
    public CRMDetailBean(String title, boolean noEdit, String content) {
        this.type = type;
        this.title = title;
        this.noEdit = noEdit;
        this.content = content;
    }

    /**
     * 创建   必填
     * @param title
     * @param content
     * @param hintType
     */
    public CRMDetailBean(String title, String content,int hintType) {
        this.title = title;
        this.content = content;
        this.hintType = hintType;
    }



    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getTopTitle() {
        return topTitle;
    }

    public void setTopTitle(String topTitle) {
        this.topTitle = topTitle;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public int getHintType() {
        return hintType;
    }

    public void setHintType(int hintType) {
        this.hintType = hintType;
    }

    public boolean isNoEdit() {
        return noEdit;
    }

    public void setNoEdit(boolean noEdit) {
        this.noEdit = noEdit;
    }
}
